from rest_framework import routers
from django.urls import path, include

from apps.staff import views
app_name = 'staff'
routers = routers.DefaultRouter()
routers.register("staff", views.StaffViewSet, basename="staff_view")
urlpatterns = [
    path('departments/', views.Department.as_view(), name='departments'),
    path('active/', views.ActiveStaffView.as_view(), name='active_staff'),
    path('download/', views.StaffDownload.as_view(), name='download_staff'),
    path('upload/', views.StaffUploadView.as_view(), name='upload_staff'),
]
urlpatterns += routers.urls